
console.log(` zzzz ${__filename} -->${__dirname}`)

const a = require('./a');
const b = require('./b');


console.log(
  `next ticket ${a.a}===>${b.b}===>${b.c}`
)

const promise = require('bluebird');

let getPerson = function(zz){
    console.log(`getPerson`);
    return 1;
  }


function first(cb){
    var str = "first";
    cb(null, str);
}

var newFunc = promise.promisify(first);
newFunc().then(function(data){
  console.log('2121',data)
  return 2;
}).then((data)=>{
  console.log(data);
})

setTimeout(()=>{console.log('end')},2000)
